<#-- 1. 预先定义需要 import 的类型 -->
<#assign typeToImport = {
    "BigDecimal": "java.math.BigDecimal",
    "BigInteger": "java.math.BigInteger",
    "Date": "java.util.Date",
    "LocalDate": "java.time.LocalDate",
    "LocalDateTime": "java.time.LocalDateTime",
    "List": "java.util.List",
    "Set": "java.util.Set",
    "Map": "java.util.Map"
}>

<#-- 2. 初始化 importSet -->
<#assign importSet = []>

<#-- 3. 遍历字段，检查需要 import 的类型 -->
<#list fields as field>
    <#if typeToImport[field.field_type]??>
        <#assign importSet = importSet + [typeToImport[field.field_type]]>
    </#if>
</#list>


<#-- 5. 动态导入所有需要的包 -->
<#list importSet as importItem>
import ${importItem};
</#list>
import lombok.Data;
import lombok.experimental.Accessors;


@Data
@Accessors(chain = true)
public class ${voName} {

<#list fields as field>
    private ${field.field_type} ${field.key}; // ${field.description}
</#list>

}
